package controller;


import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.util.GenericComposer;

import view.helper.Adaptor;
import view.helper.Setup;

public class GameController extends GenericComposer {
	
	Setup setup;
	Adaptor adaptor;
	
	public void doAfterCompose(Component comp)  throws java.lang.Exception {
		adaptor = new Adaptor();
		comp.setAttribute("model", adaptor);
		setup = new Setup(comp);	
		setup.newGame();
		super.doAfterCompose(comp);
	}
	

}
